package modelLayer;

import java.util.LinkedList;

public class Sale {

	private double total;
	private LinkedList<ProductLine> saleList;
	public Sale() {
		saleList = new LinkedList<ProductLine>();
	}
	public void insertProductLine(ProductLine productLine)
	{
		this.saleList.addLast(productLine);
		this.total += productLine.getSubTotal();
	}
	public LinkedList<ProductLine> getSaleList() {
		return saleList;
	}
	public double getTotal() {
		return total;
	}
}
